<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        html, body {
            width: 100%;
            height: 100%;
            margin: 0;
        }
        .app {
            width: 100%;
            height: 100%;
            /*background-image: url("../image/no_data_h.webp");*/
            background-position: center;
            background-size: cover;
            background-repeat: no-repeat;
        }
    </style>
</head>
<body>
<div class="app" id="app">

</div>
<script type="text/javascript">
    var w = document.body.clientWidth
    var h = document.body.clientHeight
    var app = document.getElementById('app')
    if (w > h) {
        app.style.backgroundImage = "url(../image/no_data_h.webp)"
    } else {
        app.style.backgroundImage = "url(../image/no_data_v.webp)"
    }
</script>
</body>
</html>
